<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:fragment="MainPart">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>最佳拍档</title>
    <meta name="keywords" content="最佳拍档">
    <meta name="description" content="最佳拍档">
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/common/css/style.css}">
    <script th:src="@{/layui/layui.js}" src="/layui/layui.js"></script>
    <script th:src="@{/common/js/jquery-3.3.1.min.js}" src="/common/js/jquery-3.3.1.min.js"></script>
    <script th:src="@{/common/js/common.js}" src="/common/js/common.js"></script>
    <style>
        .right h2{
            margin: 10px 0;
        }
        .right li{
            margin-bottom: 10px;
        }
    </style>
</head>

<div id="app">

    <header>
        <h1 v-text="webname" style="width: 200px;"></h1>
        <span class="layui-breadcrumb breadcrumb">
          <a href="">首页</a>
          <a href="javascript:;" th:each="item,index : ${NAV.split('/')}" th:text="${item}"></a>
        </span>
        <div style="float: right;width: 220px;text-align: left">
            <span th:text="${loginUser.username}">游客</span>，欢迎您！
            <span><a target="_blank" th:href="@{${#httpServletRequest.getContextPath()}+'/editpass?redirect_url='+${#httpServletRequest.requestURL}}">修改密码</a></span>
            <span style="padding-left: 5px;"><a th:href="@{${#httpServletRequest.getContextPath()} + '/logout'}">退出</a></span>
        </div>
    </header>
    <div class="main">
        <div>
            <ul class="layui-nav layui-nav-tree layui-nav-side" style="padding-top: 50px;">
                <li class="layui-nav-item">
                    <a href="/tab/App_AppCenter">应用中心</a>
                </li>
            </ul>
        </div>
        <div class="layui-tab-content right p20 u-ml-200">
            <div class="layui-tab-item layui-show">
                <iframe th:replace="${Tab}" frameborder="0" name="content" width="100%" id="home"></iframe>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
        var element = layui.element;
    });

</script>

</html>